package com.example.gatewayproviderexample;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@EnableDiscoveryClient
@SpringBootApplication
public class GatewayProviderExampleApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayProviderExampleApplication.class, args);
    }

    @RestController
    public class TestController{
        @RequestMapping("/hello/{str}")
        public String hello(@PathVariable("str") String str){
            return str;
        }
    }
}
